<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script type="module">
    // import {
    //     createRenderer,
    //     render,
    //     Fragment,
    //     h
    // } from '/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.js'
    // import {
    //     createRenderer,
    //     render,
    //     h
    // } from '/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.prod.js'
    import {
        // renderOptions,
        h,
        render,
        Fragment,
        Text
    } from "./runtime-dom.js"

    const renderComponent = {
        setup(props, { slots }) {
            return () => h('div', slots.default('参数'))
        }
    }
    // const renderComponent = {

    //     render(proxy) {
    //         return h('div', null, proxy.$slots.default("参数"))
    //     }
    // }
    const vueComponent = {
        setup() {
            return () => h(renderComponent, null, {
                default: (props) => h('div', '插槽' + props)
            })
        }
    }
    render(h(vueComponent, {}), document.body)

</script>

</html>